/**
 * Project Name:YCApiServer-dao
 * File Name:LyricsFovCacheMapper.java
 * Package Name:com.yc.music.mapper.cache
 * Date:2016年5月5日下午5:51:12
 * Copyright (c) 2016 
 *
 */
package com.yc.music.mapper.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yc.music.model.NumModel;
import com.yc.music.model.musicWork.MusicWorkActivity;
import com.yc.music.model.musicWork.SaveMusic;
import com.yc.music.model.musicWork.UpdateMusic;
import com.yc.music.model.musicWork.WorkBanner;
import com.yc.music.model.musicWork.WorkCenter;
import com.yc.music.model.searchvo.SearchWork;

/**
 * 
 * ClassName: WorkMapper <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年5月5日 下午5:51:12 <br/>
 *
 * @author panguixiang
 * @version 
 */
public interface WorkMapper {

	public NumModel getLookNumById(@Param("id") Long id);
	
	public void addOneLookNum(@Param("id") Long id);
	
	public void addCooperateOneLookNum(@Param("id") Long id);
	
	public long saveMusic(SaveMusic music) throws Exception;
	
	public void updateMusic(SaveMusic music) throws Exception;
	
	public void updateMusicStatus(UpdateMusic updateMusic) throws Exception;
	
	public void updateMusicZan(@Param("id") long id,@Param("iszan") int iszan)throws Exception;
	
	public List<SearchWork> searchMusicList(@Param("title") String title, @Param("start") int start,
			@Param("size") int size);
	
	public List<SearchWork> searchMusicList23(@Param("title") String title, @Param("start") int start,
			@Param("size") int size);
	
	public void addCommentNum(@Param("id") long id, @Param("opt") int opt);
	
	public void deleteMuById(@Param("id") long id);
	
	public WorkBanner getWorkBannerById(@Param("id") Long id);
	
	public List<WorkCenter> workCenterList(@Param("uid") Long uid,
			@Param("start") int start, @Param("size") int size,@Param("isother") Integer isother);
	
	public int getCountWorkByUid(@Param("uid") long uid)throws Exception;
	
	public int getCountWorkByOtherUid(@Param("uid") long uid)throws Exception;
	
	public List<MusicWorkActivity> getWorkMyList(@Param("uid") int uid, @Param("start") int start,
			@Param("size") int size)throws Exception;

	
	public int getWorkByPicUrl(@Param("picurl") String picurl);
}
